package b3.scene.home.grid
{
	import as3isolib.display.IsoSprite;
	import as3isolib.display.scene.*;
	
	import b3.config.Config;
	import b3.config.SectionConfig;
	import b3.model.ModelEvent;
	import b3.net.ResourceHelper;

	public class LockGrid extends IsoSprite
	{
		public var lock:Boolean;
		public var sectionIndex:int;
		
		public function LockGrid(sectionIndex:int)
		{
			super();
			//lockList = new Object();
			//refresh(null);
			this.sectionIndex = sectionIndex;
//			var Cls:Class = ResourceHelper.getInstance().getClassByName("GoldCoinIcon");
//			sprites = [Cls];
		}
		
//		public function refresh(event:ModelEvent):void
//		{
//			for (var str:String in Config.townConfigs[0].sectionConfigs)
//			{
//				if (str == SectionConfig.BASIC_SECTION_INDEX.toString())
//					continue;
//				var sectionConfig:SectionConfig = Config.townConfigs[0].sectionConfigs[str];
//				var sprite:IsoSprite = new IsoSprite();
//				var Cls:Class = ResourceHelper.getInstance().getClassByName("GoldCoinIcon");
//				sprite.sprites = [Cls];
//				sprite.container.name = str;
//				//sprite.setSize(Town.gridWidth, Town.gridWidth, Town.gridWidth);
//				addChild(sprite);
//				sprite.moveTo(sectionConfig.globalPoint[0],sectionConfig.globalPoint[1],0.3);
//			}
//		}
//		
//		public function unlock():void
//		{
//			
//		}
	}
}